package com.infosys.newSimpleInvertedIndex.service.impl;

import com.infosys.newSimpleInvertedIndex.dto.EmployeeDTOO;
import com.infosys.newSimpleInvertedIndex.entities.Employee;
import com.infosys.newSimpleInvertedIndex.mapper.EmployeeMapper;
import com.infosys.newSimpleInvertedIndex.mapper.RelativeMapper;
import com.infosys.newSimpleInvertedIndex.mapper.ResumeMapper;
import com.infosys.newSimpleInvertedIndex.service.IEmployeeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

/**
 * <p>
 * 员工总表 服务实现类
 * </p>
 *
 * @author Tester
 * @since 2024-06-24
 */
@Service
public class EmployeeServiceImpl extends ServiceImpl<EmployeeMapper, Employee> implements IEmployeeService {
    @Autowired
    private EmployeeMapper employeeMapper;
    @Autowired
    private RelativeMapper relativeMapper;
    @Autowired
    private ResumeMapper resumeMapper;

    @Override
    public Employee getEmployeeById(String id){
        return employeeMapper.getEmployeeById(id);
    }

    @Override
    public List<Employee> getEmployeeByAgeRange(String startDateStr, String endDateStr) {
        return employeeMapper.getEmployeeByAgeRange(startDateStr, endDateStr);
    }
}
